home *** CD-ROM | disk | FTP | other *** search
/ MacHack 1997 / MacHack 1997.toast / Hacks / Hacks ’97 / Animated Icons / Source / LIconSuitePane.h < prev    next >
Encoding:
Text File  |  1997-06-22  |  1.5 KB  |  69 lines  |  [TEXT/CWIE]

  1. // ===========================================================================
  2. //    LIconPane.h                   ©1995-1996 Metrowerks Inc. All rights reserved.
  3. // ===========================================================================
  4. //
  5. //    Pane which draws a single icon from an icon family
  6.  
  7. #ifndef _H_LIconSuitePane
  8. #define _H_LIconSuitePane
  9. #pragma once
  10.  
  11. #if defined(__CFM68K__) && !defined(__USING_STATIC_LIBS__)
  12.     #pragma import on
  13. #endif
  14.  
  15. #include <LPane.h>
  16. #include "IconSuitePatches.h"
  17.  
  18.  
  19. class    LIconSuitePane : public LPane {
  20. public:
  21.     enum { class_ID = 'icnS' };
  22.     static LIconSuitePane*    CreateIconPaneStream(LStream *inStream);
  23.     
  24.                         LIconSuitePane();
  25.                         LIconSuitePane(
  26.                                 const SPaneInfo        &inPaneInfo,
  27.                                 ResIDT                inIconID);
  28.                         LIconSuitePane(
  29.                                 LStream                *inStream);
  30.     virtual                ~LIconSuitePane();
  31.     
  32.     void                SetIconID(
  33.                                 Handle inIconSuiteH );
  34.  
  35.     virtual void        DrawSelf();
  36.                                 
  37. protected:
  38.     Handle                mIconSuiteH;
  39. };
  40.  
  41.  
  42. class    LIconRefPane : public LPane {
  43. public:
  44.     enum { class_ID = 'icnR' };
  45.     static LIconRefPane*    CreateIconRefPaneStream(LStream *inStream);
  46.     
  47.                         LIconRefPane();
  48.                         LIconRefPane(
  49.                                 const SPaneInfo        &inPaneInfo,
  50.                                 ResIDT                inIconID);
  51.                         LIconRefPane(
  52.                                 LStream                *inStream);
  53.     virtual                ~LIconRefPane();
  54.     
  55.     void                SetIconID(
  56.                                 IconRef iconRef );
  57.  
  58.     virtual void        DrawSelf();
  59.                                 
  60. protected:
  61.     IconRef                mIconRef;
  62. };
  63.  
  64.  
  65. #if defined(__CFM68K__) && !defined(__USING_STATIC_LIBS__)
  66.     #pragma import reset
  67. #endif
  68.  
  69. #endif